-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed dropdown/lookup & lookup-name fields being reset when hitting enter #3724
Fixed dropdown/lookup & lookup-name fields being reset when hitting enter #3724
Conversation
…ting enter in another input form (onsubmit)
…esetting-on-enter_contribute-7.6' # Conflicts: # src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.html
…ting the enter key in another input field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @alexandrevryghem! I tested this PR locally, and it fixes the bug in the form.
Thanks @alexandrevryghem! Merging as this is
1 APPROVAL
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-3724-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3724-to-dspace-7_x
git switch --create backport-3724-to-dspace-7_x
git cherry-pick -x ed4e794d466cec87ec9f7029f59165ff12409174 c8694e1a87ab6ad70ef0f984a77f3e12dbd5605d |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-3724-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-3724-to-dspace-8_x
git switch --create backport-3724-to-dspace-8_x
git cherry-pick -x ed4e794d466cec87ec9f7029f59165ff12409174 c8694e1a87ab6ad70ef0f984a77f3e12dbd5605d |
Dear @alexandrevryghem, automatic backports for this to |
References
Description
Fixed issue where hitting enter in a submission form containg a
dropdown
/lookup
orlookup-name
field would cause the first one to reset.Instructions for Reviewers
List of changes in this PR:
type="button"
to the buttons in those dropdowns, this prevents them from being triggered on submitFormService
class. TheAbstractControl
'serrors
property can be null when there are no errors, and this caused an issue when it wasnull
because thenObject.keys(null)
was being calledChecklist
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lint
npm run check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.